import {Get,Post,Put,Patch,Delete} from "@/utils/tokenRequest.js";
 
export default {
  register:(params)=> {
    return Get('/userRegister',params);
  },
  getLogin: (params) => {
    return Get('/login',params);
  },
  updateUserInfo: (params) => {
    return Post('/updateUserInfo',params);
  },
  deleteListData: (params) => {
    return Delete('../../static/data.json',params);
  },
  async getInfo(info,Object){
    info=await Object.then()
    return info
  },
  postInfo:(url,params)=>{
    return Post("shiro"+url,params);
  },
  updateItemInfo:(url,params) => {
    return Post("shiro"+url,params);
  },
}
 